package study09;
import java.util.Scanner;

public class TestExam {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        //创建测评类对象
        Exam exam = new Exam();

        //给成员变量赋值
        System.out.println("请输入平时成绩");
        exam.usual = input.nextDouble();
        System.out.println("请输入理论成绩");
        exam.basic = input.nextDouble();
        System.out.println("请输入技能成绩");
        exam.skill = input.nextDouble();

        //调用成员方法显示平均成绩
        exam.showAverageScore();
        //调用成员方法显示综合成绩
        exam.showTotalScore();
    }
}
